<%@ page language="java" import="java.util.*" pageEncoding="utf8"%>
<%@ page isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>用户添加</title>

		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="this is my page">
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">

		<style>
#thisform {
	font-family: Georgia, serif;
	font-size: 12px;
	color: #999;
}

#thisform label {
	font-family: Verdana, sans-serif;
	font-weight: bold;
	color: #660000;
}

#thisform fieldset {
	border: 1px solid #cc;
	padding: 0 20px;
}

#thisform legend {
	font-family: arial, sans-serif;
	font-weight: bold;
	font-size: 90%;
	color: #666;
	background: #eee;
	border: 1px solid #ccc;
	border-bottom-color: #999;
	border-right-color: #999;
	padding: 4px 8px;
}
</style>
	</head>
  
  <body>
		<form action="addaccount.do" id="thisform" method="post">
			<fieldset>
				<legend>
					用户添加
				</legend>
				<p>
					<label for="username" accesskey="9">
						Name:
					</label>
					<br />
					<input type="text" id="username" name="username" tabindex="1">
				</p>
				<p>
					<label for="password">
						Password:
					</label>
					<br />
					<input type="password" id="password" name="password" tabindex="2">
				</p>
				<p>
					<label for="password">
						Password Again:
					</label>
					<br />
					<input type="password" id="passwordAgain" name="passwordAgain"
						tabindex="3">
				</p>
				<p>
					<label for="email">
						Email:
					</label>
					<br />
					<input type="text" id="email" name="email" tabindex="4">
				</p>
				<p>
					<label for="group">
						用户组:
					</label>
					<br />
					<select name="group" tabindex="5" id="group">
					<c:forEach var="group" items="${map.dtoList}">
					  <option value="${group.id}" <c:if test="${map.groupName==group.mgrGroupName}">selected="selected"</c:if>>${group.mgrGroupName}</option>
				    </c:forEach>
				    </select>
				</p>
				<p>
					<input type="submit" value="submit" tabindex="5" />
					<input type="button" value="cancel" tabindex="6" onclick="window.location.href='redirect.do?method=welcome'"/>
				</p>
			</fieldset>
		</form>
	</body>
</html>
